package cn.wolfcode.shop.web.advice;

import cn.wolfcode.shop.common.CommonExceptionAdvice;
import cn.wolfcode.shop.msg.SeckillServerCodeMsg;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.ControllerAdvice;

@ControllerAdvice
@NoArgsConstructor
public class SeckillServerControllerAdvice extends CommonExceptionAdvice {

    private SeckillServerCodeMsg defaultCodmsg = SeckillServerCodeMsg.GOODSSERVER_ERROR;

    public SeckillServerControllerAdvice(SeckillServerCodeMsg codeMsg) {
        defaultCodmsg = codeMsg;
    }
}
